package com.fangzc.codegen.entity.tables;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

/**
 * 表定义层。
 *
 * @author FANGZC-TB14
 * @since 2023-05-27
 */
public class TGenTableColumn extends TableDef {

    public static final TGenTableColumn gen_table_column = new TGenTableColumn("gen_table_column");

    public QueryColumn column_id = new QueryColumn(this, "column_id");
    public QueryColumn table_id = new QueryColumn(this, "table_id");
    public QueryColumn column_name = new QueryColumn(this, "column_name");
    public QueryColumn column_comment = new QueryColumn(this, "column_comment");
    public QueryColumn column_type = new QueryColumn(this, "column_type");
    public QueryColumn java_type = new QueryColumn(this, "java_type");
    public QueryColumn java_field = new QueryColumn(this, "java_field");
    public QueryColumn is_pk = new QueryColumn(this, "is_pk");
    public QueryColumn is_increment = new QueryColumn(this, "is_increment");
    public QueryColumn is_required = new QueryColumn(this, "is_required");
    public QueryColumn is_insert = new QueryColumn(this, "is_insert");
    public QueryColumn is_edit = new QueryColumn(this, "is_edit");
    public QueryColumn is_list = new QueryColumn(this, "is_list");
    public QueryColumn is_query = new QueryColumn(this, "is_query");
    public QueryColumn query_type = new QueryColumn(this, "query_type");
    public QueryColumn html_type = new QueryColumn(this, "html_type");
    public QueryColumn dict_type = new QueryColumn(this, "dict_type");
    public QueryColumn sort = new QueryColumn(this, "sort");
    public QueryColumn create_by = new QueryColumn(this, "create_by");
    public QueryColumn create_time = new QueryColumn(this, "create_time");
    public QueryColumn update_by = new QueryColumn(this, "update_by");
    public QueryColumn update_time = new QueryColumn(this, "update_time");

    public QueryColumn[] default_columns = new QueryColumn[]{column_id, table_id, column_name, column_comment, column_type, java_type, java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list, is_query, query_type, html_type, dict_type, sort, create_by, create_time, update_by, update_time};
    public QueryColumn[] all_columns = new QueryColumn[]{column_id, table_id, column_name, column_comment, column_type, java_type, java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list, is_query, query_type, html_type, dict_type, sort, create_by, create_time, update_by, update_time};

    public TGenTableColumn(String tableName) {
        super(tableName);
    }
}
